<template>
  <div class="user-exam-page">
    <div class="user-exam-container">
      <h1 class="user-exam-title">我的考试</h1>
      <div class="user-exam-content">
        <el-empty description="暂无考试记录" />
      </div>
    </div>
  </div>
</template>

<script setup>
// 这里可以添加用户考试相关的逻辑
</script>

<style lang="scss" scoped>
.user-exam-page {
  width: 100%;
  padding: 80px 20px 20px 20px; // 添加顶部80px的内边距，为固定导航栏预留空间
  background-color: #F5F7F9;
  min-height: calc(100vh - 60px);
  
  .user-exam-container {
    max-width: 1520px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    
    .user-exam-title {
      font-family: PingFangSC-Regular, Roboto, Helvetica Neue, Helvetica, Tahoma, Arial, PingFang SC-Light, Microsoft YaHei;
      font-size: 28px;
      font-weight: 600;
      color: #222222;
      margin-bottom: 30px;
      padding-bottom: 15px;
      border-bottom: 1px solid #eaeaea;
    }
    
    .user-exam-content {
      min-height: 400px;
      display: flex;
      justify-content: center;
      align-items: center;
    }
  }
}

// 响应式设计
@media (max-width: 768px) {
  .user-exam-page {
    padding: 70px 10px 10px 10px; // 调整小屏幕下的内边距
    
    .user-exam-container {
      padding: 20px;
      
      .user-exam-title {
        font-size: 24px;
        margin-bottom: 20px;
      }
    }
  }
}

@media (max-width: 480px) {
  .user-exam-page {
    padding: 70px 5px 5px 5px; // 调整更小屏幕下的内边距
    
    .user-exam-container {
      padding: 15px;
      border-radius: 8px;
      
      .user-exam-title {
        font-size: 20px;
        margin-bottom: 15px;
      }
    }
  }
}
</style>